#include <iostream>
#include <signal.h>
#include <unistd.h>

void hander(int signo)
{
    std::cout << "signo : " << signo << std::endl;
}

void hander2(int signo)
{
    std::cout << "signo : " << signo << std::endl;
}

int main()
{
    signal(2, hander);
    signal(3, hander2);
    raise(3);

    while(1)
    {
        std::cout << "running...........\n";
        sleep(1);
    }
    return 0;
}